package com.dawn.module.hospital.controller.admin.qrcodepay.vo;

import com.dawn.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.dawn.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 扫码支付分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class QrcodePayPageReqVO extends PageParam {

    @Schema(description = "用户id", example = "21895")
    private Long userId;

    @Schema(description = "openid", example = "14973")
    private String openid;

    @Schema(description = "机构名称", example = "李四")
    private String orgName;

    @Schema(description = "机构编码")
    private String orgCode;

    @Schema(description = "姓名", example = "王五")
    private String patientName;

    @Schema(description = "身份证号")
    private String idCardNo;

    @Schema(description = "病人ID", example = "21035")
    private String patientId;

    @Schema(description = "门诊号")
    private String clinicNo;

    @Schema(description = "电话")
    private String phone;

    @Schema(description = "HIS收费单据号串(逗号拼接)")
    private String hisBillNos;

    @Schema(description = "HIS订单号")
    private String hisOrderNo;

    @Schema(description = "订单类型", example = "2")
    private String orderType;

    @Schema(description = "支付订单号")
    private String orderNumber;

    @Schema(description = "付款码")
    private String authCode;

    @Schema(description = "二维码地址")
    private String qrcodeUrl;

    @Schema(description = "渠道订单号")
    private String thirdOrderNo;

    @Schema(description = "订单金额")
    private BigDecimal amount;

    @Schema(description = "其他费用")
    private BigDecimal otherAmount;

    @Schema(description = "0 未支付 1 支付成功 2 已退款 3 申请退款", example = "2")
    private Integer payStatus;

    @Schema(description = "支付时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] payTime;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "支付平台订单号", example = "2")
    private String payOrderId;

    @Schema(description = "支付类型ID", example = "2")
    private String payTypeId;

    @Schema(description = "支付方式名称", example = "2")
    private String payModeName;

    @Schema(description = "支付场景", example = "2")
    private String payScene;

    @Schema(description = "退款订单号")
    private String refundNumber;

    @Schema(description = "退款金额", example = "29379")
    private BigDecimal refundPrice;

    @Schema(description = "退款时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] refundTime;

    @Schema(description = "退款原因", example = "不喜欢")
    private String refundReason;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    private String beginDate;

    private String endDate;

}